地図:群馬県

説明

指定した座標に群馬県を描きます。map()のパラメーターにはX座標、Y座標、描画する色を指定します。

[以下のJavaScriptプログラムをダウンロード]

function map(x,y,c){var n=128;
uart(n,14,3,x+8,y,c,0,0,0,0,0,1,1,3);
uart(n,14,3,x+16,y,c,16,24,252,255,255,255,255,255);
uart(n,14,3,x+24,y,c,0,0,0,0,192,224,224,224);
y=y+8;
uart(n,14,3,x,y,c,0,0,0,1,15,15,63,63);
uart(n,14,3,x+8,y,c,15,15,255,255,255,255,255,255);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+24,y,c,224,192,224,192,192,192,192,252);
y=y+8;
uart(n,14,3,x,y,c,127,127,255,255,127,57,0,0);
uart(n,14,3,x+8,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+24,y,c,252,248,240,240,240,224,224,240);
y=y+8;
uart(n,14,3,x,y,c,1,1,3,3,1,5,3,1);
uart(n,14,3,x+8,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+16,y,c,255,255,241,224,224,224,192,128);
uart(n,14,3,x+24,y,c,248,248,255,15,6,0,0,0);
uart(n,14,3,x+32,y,c,0,0,224,224,96,0,0,0);
y=y+8;
uart(n,14,3,x,y,c,1,1,1,0,0,0,0,0);
uart(n,14,3,x+8,y,c,252,240,192,192,0,0,0,0);
y=y+8;
}
uart("PC CLEAR 0b\n");
map(0,0,1);

目次に戻る